<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">

    <!-- 导入 Vue 3 -->
    <script src="//unpkg.com/vue@next"></script>
    <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/axios.min.js"></script>
    <script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
</head>
<body>
<div class="container-fluid">
    <header style="height: 100px; width:100%;position:fixed;z-index: 50">
        <div>
            <div class="col-md-push-12 column">

                <nav class="navbar navbar-default" role="navigation">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button> <a class="navbar-brand" href="#">首页</a>
                    </div>

                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav">
                            <li class="active">
                                <a href="#">Link</a>
                            </li>
                            <li>
                                <a href="#">Link</a>
                            </li>
                        </ul>

                        <!--                    搜索框-->
                        <form class="navbar-form navbar-left" role="search" >
                            <div class="form-group" style="width: 500px">
                                <input type="text" class="form-control" v-model="input" style="width: 495px"/>
                            </div>
                            <button type="button" class="btn btn-default" @click="select">查询</button>
                        </form>

                        <ul class="nav navbar-nav navbar-right">
                            <li>
                                <a v-show="loginDialog" id="modal-12089" href="#loginWin" role="button" class="btn" data-toggle="modal">登录</a>

                                <img v-show="!loginDialog" :src="user.url" style="width: 100px">

                            </li>
                            <li>
                                <a href="#">收藏</a>
                            </li>
                            <li>
                                <a href="#">历史</a>
                            </li>
                        </ul>
                    </div>

                </nav>
            </div>
        </div>
    </header>
    <!--                            登录弹窗-->
    <div  class="modal fade" id="loginWin" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                </div>
                <!--                                        内容-->
                <div  class="modal-body">

                    <form role="form">
                        <div class="form-group">
                            <label for="exampleInputEmail1">用户名</label>
                            <input v-model="user.username" type="text" class="form-control" id="exampleInputEmail1" />
                        </div>
                        <div class="form-group">
                            <label for="exampleInputPassword1">密码</label>
                            <input v-model="user.password" type="password" class="form-control" id="exampleInputPassword1" />
                        </div>
                    </form>
                </div>

                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" style="float: left">注册</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" @click="login">登录</button>
                </div>
            </div>

        </div>

    </div>
</div>
<script>

</script>


</body>
</html>